FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt

COPY src /app/src

ENV PYTHONPATH=/app/src
ENV PORT=8080

CMD uvicorn app:build_app --factory --host 0.0.0.0 --port ${PORT}
